from enum import Enum
from enum import IntEnum as SourceIntEnum
from typing import Any, TypeVar

T = TypeVar('T', bound=Enum)


class BuildTreeType(Enum):
    """构建树形结构的算法类型"""
    traversal = 'traversal'  # 遍历算法
    recursion = 'recursion'  # 递归算法